package newinterface;

/*
 *Author:ZouHeng
 *Des: 接口默认方法
 *Date:2021-07-01  16:15
 */
public interface MyInterface {
    void method1();

    void method2();

    default void myDefaultMethod() {
        System.out.println("调用MyInterface接口的默认方法myDefaultMethod()");
    }
}
